import request from '@/utils/request'

// 查询会员卡配置列表
export function listCardConfig(query) {
  return request({
    url: '/service/cardConfig/list',
    method: 'get',
    params: query
  })
}

// 查询会员卡配置详细
export function getCardConfig(id) {
  return request({
    url: '/service/cardConfig/' + id,
    method: 'get'
  })
}

// 新增会员卡配置
export function addCardConfig(data) {
  return request({
    url: '/service/cardConfig',
    method: 'post',
    data: data
  })
}

// 修改会员卡配置
export function updateCardConfig(data) {
  return request({
    url: '/service/cardConfig',
    method: 'put',
    data: data
  })
}

// 删除会员卡配置
export function delCardConfig(id) {
  return request({
    url: '/service/cardConfig/' + id,
    method: 'delete'
  })
}
